import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        page: 1,
        pageSize: 10,
        pageSizes: [10, 20, 30, 40, 50],
        total: 0
    },
    getters: {},
    mutations: {
        setPage(state, page) {
            state.page = page;
        },
        setPageSize(state, pageSize) {
            state.pageSize = pageSize;
        },
    },
    actions: {},
    modules: {}
})
